﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CastingWellEquipmentGUI.Model
{
    public class Control : ObservableObject
    {
        private int _ControlId;
        public int ControlId
        {
            get { return _ControlId; }
            set
            {
                _ControlId = value;
                RaisePropertyChanged(() => ControlId);
            }
        }
        private string _ControlName;
        public string ControlName
        {
            get { return _ControlName; }
            set
            {
                _ControlName = value;
                RaisePropertyChanged(() => ControlName);
            }
        }
        private string _FormName;
        public string FormName
        {
            get { return _FormName; }
            set
            {
                _FormName = value;
                RaisePropertyChanged(() => FormName);
            }
        }
        
        private string _ControlExplain;
        public string ControlExplain
        {
            get { return _ControlExplain; }
            set
            {
                _ControlExplain = value;
                RaisePropertyChanged(() => ControlExplain);
            }
        }
        

        private TagInfo _Tag;
        public TagInfo Tag
        {
            get { return _Tag; }
            set
            {
                _Tag = value;
                RaisePropertyChanged(() => Tag);
            }
        }

        private int _TagInfoId;
        public int TagInfoId
        {
            get { return _TagInfoId; }
            set
            {
                _TagInfoId = value;
                RaisePropertyChanged(() => TagInfoId);
            }
        }

        /// <summary>
        /// 关系类型：
        /// 1是报警，
        /// 2是状态，
        /// 3是根据值显示内容
        /// </summary>
        private int _RelationType;
        /// <summary>
        /// 关系类型：
        /// 1是报警，
        /// 2是状态，
        /// 3是根据值显示内容
        /// </summary>
        public int RelationType
        {
            get { return _RelationType; }

            set
            {
                _RelationType = value;
                RaisePropertyChanged(() => RelationType);
            }
        }
        /// <summary>
        /// 报警类型：1，铸造类，2是预检测类，3是界面类
        /// </summary>
        private int _WarningType;
        /// <summary>
        /// 报警类型：1，铸造类，2是预检测类，3是界面类
        /// </summary>
        public int WarningType
        {
            get { return _WarningType; }

            set
            {
                _WarningType = value;
                RaisePropertyChanged(() => WarningType);
            }
        }
        /// <summary>
        /// 状态类：1是通畅 2是堵塞
        /// </summary>
        private int _StatusType;
        /// <summary>
        /// 状态类：1是通畅 2是堵塞
        /// </summary>
        public int StatusType
        {
            get { return _StatusType; }

            set
            {
                _StatusType = value;
                RaisePropertyChanged(() => StatusType);
            }
        }
        /// <summary>
        /// 外键对应内容表主键
        /// </summary>
        private int _ContentId;
        /// <summary>
        /// 外键对应内容表主键
        /// </summary>
        public int ContentId
        {
            get { return _ContentId; }

            set
            {
                _ContentId = value;
                RaisePropertyChanged(() => ContentId);
            }
        }

        private int _FormId;

        public int FormId
        {
            get { return _FormId; }
            set
            {
                _FormId = value;
                RaisePropertyChanged(() => FormId);
            }
        }



    }
}
